import VueRouter from 'vue-router'
import Index from './pages/index/index.vue'
import ManageUsers from './pages/manageUsers/manageUsers.vue'
import Other1 from "./pages/others/other1.vue"
import ManagePermissions from './pages/manageUsers/managePermissions.vue'
import ShowLogs from './pages/manageUsers/showLogs.vue'
import ManagerLogin from './pages/login/LoginManager.vue'
import notice from './pages/notice/notice.vue'
import SportParameter from './pages/SportParameter/SportParameter.vue'
import managePetTemplate from './pages/managePetTemplate/managePetTemplate.vue'
import editEvolutionLine from './pages/editEvolutionLine/editEvolutionLine.vue'
import manageMarket from './pages/manageMarket/manageMarket.vue'
import manageArena from './pages/manageArena/manageArena.vue'
import globalPersona from './pages/globalPersona/globalPersona.vue'
// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/', redirect:'/login_manager'},
    {path:'/index', redirect:'/index/other1'},
    {path:'/login_manager',component:ManagerLogin},
    {
      path:'/index',
      component:Index,
      children: [
        {
          path:'notice',
          component:notice
        },
        {
          path:'global_persona',
          component:globalPersona
        },
        {
          "path":"sport_parameter",
          component:SportParameter
        },
        {
          'path':'manage_market',
          component:manageMarket
        },
        {
          "path":"manage_pet_template",
          component:managePetTemplate
        },
        {
          path: 'manage_arena',
          component: manageArena
        },
        {
          path: 'manage_users',
          component: ManageUsers
        },
        {
          path: 'manage_permissions',
          component: ManagePermissions
        },
        {
          path:'edit_evolution_line',
          component:editEvolutionLine
        },
        {
          path: 'show_logs',
          component: ShowLogs
        },
        {
          path: 'other1',
          component: Other1
        }
    ]          
    },
  ]
})

// 把路由对象暴露出去
export default router